/**
 * @author wyp
 * @description 个人中心
 * @date 2023-2-7
 */
import axiosInstance from "../axiosInstance";

const userCenter = {
    userCenterInfo() {
        return axiosInstance.get(`/user/centerInfo`)
    },
    editUserInfo(userInfo) {
        return axiosInstance.post('/user/updateByUserSelf', userInfo)
    },
    updatePass(formPassword) {
        return axiosInstance.post('/user/updatePassByUser', formPassword)
    },
    info(id) {
        return axiosInstance.get(`/orderFront/selectOrderInfoMore?id=${id}`)
    },
    evolutionOrder(form) {
        return axiosInstance.post(`/orderFront/evaluatedCommodity`, form)
    },
    selectAllOrderEvolutions() {
        return axiosInstance.get('/orderFront/selectAllOrderEvolutions')
    },
    updateOrderStatus(orderSn) {
        return axiosInstance.get(`/orderFront/updateOrderStatus?orderSn=${orderSn}`)
    },
    deleteOrder(id){
        return axiosInstance.get(`/orderFront/deleteOrder?id=${id}`)
    },
    sendSaleBack(orderId){
        return axiosInstance.get(`/user/sendSaleBackMsg?orderId=${orderId}`)
    }
}
export default userCenter;